package com.xhai.service.impl;

import com.xhai.domain.entity.SysRole;
import com.xhai.mapper.SysRoleMapper;
import com.xhai.service.SysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author xhai
 * @since 2025-05-24
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Resource
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> selectRoleByPostIds(Set<Long> postIds) {
        return sysRoleMapper.selectRoleByPostIds(postIds);
    }
}
